package org.example.aaaatest.shijian;

import com.amap.car.order.i18n.util.TimeZoneUtil;
import com.google.common.collect.Lists;

import java.util.Date;
import java.util.TimeZone;

/**
 * @description:
 * @author: wangbaogui
 * @create: 2025/4/10 09:48
 **/
public class ccc1 {

    public static void main(String[] args) {



        TimeZone newYorkTimeZone = TimeZoneUtil.getAdminTimeZone( 35.713246,139.762315);

        System.out.println("zoneId = " + newYorkTimeZone);
        System.out.println("zoneId111111111111111 = " + newYorkTimeZone.toZoneId());

        long millis1 = 1744092126189L;


        TimeZone shanghaiTimeZone = TimeZone.getTimeZone("Asia/Shanghai");
      // 示例3: 获取上海和纽约的时区偏移量
        long offset = TimestampTimeZoneConverter.getTimeZoneOffset(shanghaiTimeZone, newYorkTimeZone);
        System.out.println("上海和纽约的时区偏移量(毫秒): " + offset);
        Date    date1 = new Date(millis1 + offset);
        System.out.println("convertedTimestamp1111111111 = " +date1);

        String areaCode = null;
        boolean contains = Lists.newArrayList("81", "82").contains(areaCode);
        System.out.println("contain22222222222222s = " + contains);


    }
}
